import 'package:myapp/http/sample/base/app_post_request.dart';
import 'package:myapp/http/sample/cmd/app_login_result.dart';

class AppLoginRequest extends AppPostRequest<AppLoginResult>{


  AppLoginRequest setParams(String name,String pwd){
    addDataBody("username", name);
    addDataBody("password", pwd);
    return this;
  }


  @override
  String path() {
    return "app/login";
  }


  @override
  String commandId() {
    return "1000";
  }

  @override
  AppLoginResult onDataConvert(netResult) {
    return AppLoginResult.fromJson(netResult!);
  }


}